home *** CD-ROM | disk | FTP | other *** search
- from PSPApp import *
- import PSPUtils
-
- def ScriptProperties():
- return {
- 'Author': 'Tracy Pori',
- 'Copyright': '',
- 'Description': "Makes image look like a pencil sketch.",
- 'Host': 'Paint Shop Pro',
- 'Host Version': '8.00'
- }
-
-
- def Do(Environment):
- if PSPUtils.LayerIsBackground( Environment, App.TargetDocument ):
- App.Do( Environment, 'LayerPromoteBackground', {
- 'GeneralSettings': {
- 'ExecutionMode': App.Constants.ExecutionMode.Default,
- 'AutoActionMode': App.Constants.AutoActionMode.Match
- }
- })
-
- App.Do( Environment, 'Colorize', {
- 'Hue': 147,
- 'Saturation': 0,
- 'GeneralSettings': {
- 'ExecutionMode': App.Constants.ExecutionMode.Default,
- 'AutoActionMode': App.Constants.AutoActionMode.Match
- }
- })
-
- App.Do( Environment, 'LayerDuplicate', {
- 'GeneralSettings': {
- 'ExecutionMode': App.Constants.ExecutionMode.Default,
- 'AutoActionMode': App.Constants.AutoActionMode.Match
- }
- })
-
- App.Do( Environment, 'NegativeImage', {
- 'GeneralSettings': {
- 'ExecutionMode': App.Constants.ExecutionMode.Default,
- 'AutoActionMode': App.Constants.AutoActionMode.Match
- }
- })
-
- App.Do( Environment, 'GaussianBlur', {
- 'Radius': 9.000000,
- 'GeneralSettings': {
- 'ExecutionMode': App.Constants.ExecutionMode.Default,
- 'AutoActionMode': App.Constants.AutoActionMode.Match
- }
- })
-
- App.Do( Environment, 'LayerProperties', {
- 'General': {
- 'Opacity': None,
- 'Name': None,
- 'IsVisible': None,
- 'IsTransparencyLocked': None,
- 'LinkSet': None,
- 'UseHighlight': None,
- 'PaletteHighlightColor': None,
- 'GroupLink': None,
- 'BlendMode': App.Constants.BlendMode.Dodge
- },
- 'BlendRanges': None,
- 'Path': (0,0,[],App.Constants.Boolean.false),
- 'BrightnessContrast': None,
- 'ChannelMixer': None,
- 'ColorBalance': None,
- 'CurveParams': None,
- 'HSL': None,
- 'Threshold': None,
- 'Levels': None,
- 'Posterize': None,
- 'Overlay': None,
- 'GeneralSettings': {
- 'ExecutionMode': App.Constants.ExecutionMode.Silent,
- 'AutoActionMode': App.Constants.AutoActionMode.Default
- }
- })
-
- App.Do( Environment, 'NewRasterLayer', {
- 'General': {
- 'Opacity': 100,
- 'Name': PSPUtils.LayerName_Blackandwhitepencil,
- 'IsVisible': App.Constants.Boolean.true,
- 'IsTransparencyLocked': App.Constants.Boolean.false,
- 'LinkSet': 0,
- 'UseHighlight': App.Constants.Boolean.false,
- 'PaletteHighlightColor': (255,255,64),
- 'GroupLink': App.Constants.Boolean.true,
- 'BlendMode': App.Constants.BlendMode.Normal
- },
- 'BlendRanges': {
- 'BlendRangeGreen': (0,0,255,255,0,0,255,255),
- 'BlendRangeRed': (0,0,255,255,0,0,255,255),
- 'BlendRangeBlue': (0,0,255,255,0,0,255,255),
- 'BlendRangeGrey': (0,0,255,255,0,0,255,255)
- },
- 'GeneralSettings': {
- 'ExecutionMode': App.Constants.ExecutionMode.Default,
- 'AutoActionMode': App.Constants.AutoActionMode.Match
- }
- })
-
- App.Do( Environment, 'Fill', {
- 'BlendMode': 0,
- 'MatchMode': 1,
- 'Material': {
- 'Color': (255,255,255),
- 'Pattern': None,
- 'Gradient': None,
- 'Texture': None
- },
- 'UseForground': App.Constants.Boolean.true,
- 'Opacity': 100,
- 'Point': (388.000000000,341.000000000),
- 'SampleMerged': 0,
- 'Tolerance': 200,
- 'GeneralSettings': {
- 'ExecutionMode': App.Constants.ExecutionMode.Default,
- 'AutoActionMode': App.Constants.AutoActionMode.Match
- }
- })
-
- App.Do( Environment, 'AddNoise', {
- 'Amount': 100,
- 'Type': 2,
- 'Monochrome': App.Constants.Boolean.true,
- 'GeneralSettings': {
- 'ExecutionMode': App.Constants.ExecutionMode.Default,
- 'RandomSeed': 29192734,
- 'AutoActionMode': App.Constants.AutoActionMode.Match
- }
- })
-
- App.Do( Environment, 'MotionBlur', {
- 'Strength': 100.000000,
- 'Angle': 48.000000,
- 'GeneralSettings': {
- 'ExecutionMode': App.Constants.ExecutionMode.Default,
- 'AutoActionMode': App.Constants.AutoActionMode.Match
- }
- })
-
- App.Do( Environment, 'LayerProperties', {
- 'General': {
- 'Opacity': 61,
- 'Name': None,
- 'IsVisible': None,
- 'IsTransparencyLocked': None,
- 'LinkSet': None,
- 'UseHighlight': None,
- 'PaletteHighlightColor': None,
- 'GroupLink': None,
- 'BlendMode': App.Constants.BlendMode.Multiply
- },
- 'BlendRanges': None,
- 'Path': (0,0,[],App.Constants.Boolean.false),
- 'BrightnessContrast': None,
- 'ChannelMixer': None,
- 'ColorBalance': None,
- 'CurveParams': None,
- 'HSL': None,
- 'Threshold': None,
- 'Levels': None,
- 'Posterize': None,
- 'Overlay': None,
- 'GeneralSettings': {
- 'ExecutionMode': App.Constants.ExecutionMode.Silent,
- 'AutoActionMode': App.Constants.AutoActionMode.Default
- }
- })
-